/**
 * Copyright (c) Enalean, 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.dashboard-widget-content-timetracking,
.dashboard-widget-content-timetracking-overview {
    margin: 0;
}

.timetracking-reading-mode {
    display: flex;

    &:hover {
        background-color: transparentize($tlp-theme-color, .9);
        cursor: pointer;
    }
}

.timetracking-writing-mode-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: $tlp-spacing;
}

.timetracking-writing-mode-selected-dates,
.timetracking-reading-mode-dates {
    display: flex;
    margin: $tlp-spacing $tlp-spacing 0;
}

.timetracking-writing-mode-selected-date:last-of-type,
.timetracking-reading-date:last-of-type {
    margin: 0 0 0 $tlp-spacing;
}

.timetracking-writing-search {
    margin: 0 0 0 $tlp-spacing;
}

.timetracking-artifacts-table,
.timetracking-overview-widget-table {
    margin: $tlp-spacing;
}

.timetracking-time-tooltip {
    margin: 0 0 0 5px;
    vertical-align: middle;
}

.timetracking-badge-direct-link-to-artifact {
    margin: 0 5px 0 0;
}

.timetracking-loader {
    height: 100px;
    background: url('/themes/BurningParrot/images/spinner.gif') no-repeat center center;
}

.timetracking-total-sum {
    white-space: nowrap;
}

.timetracking-details-modal-artefact-link-top-bottom-spacer {
    margin: 25px 0;
}

.timetracking-details-modal-artifact-infos-project-name {
    color: $tlp-theme-color;
}

.timetracking-details-link-to-open-modal {
    color: $tlp-theme-color;
    cursor: pointer;
}

.timetracking-details-modal-artifact-infos-container {
    display: flex;
}

.timetracking-details-modal-artifact-details {
    padding: $tlp-spacing;
}

.timetracking-details-modal-artifact-infos {
    display: flex;
    flex-direction: column;

    &:not(:first-child) {
        margin: 0 0 0 $tlp-double-spacing;
    }

    > span:first-child {
        color: $tlp-swatch-inca-silver;
        font-size: 18px;
        font-weight: 400;
    }

    > span:last-child {
        margin: 7px 0 0;
    }
}

.timetracking-details-project-icon {
    margin: 0 5px 0 0;
    fill: $tlp-swatch-inca-silver;
}

.timetracking-details-modal-content {
    padding: 0;
}

.timetracking-details-modal-add-time-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tlp-input.timetracking-details-modal-add-step-field {
    width: 100%;
}

.flatpickr-wrapper.static {
    display: block;
}

.timetracking-details-modal-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timetracking-details-form-element {
    margin: 0;
}

.timetracking-tooltip {
    &::before {
        opacity: 1;
    }

    &::after {
        opacity: 1;
    }
}

.timetracking-overview-trackers-empty {
    display: flex;
    align-items: center;
    margin: 0;
    color: $tlp-theme-color;
    font-style: italic;
}

.timetracking-overview-tracker-selector {
    display: flex;
    align-items: center;
    margin: $tlp-spacing $tlp-half-spacing 0;
}
